package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 聊天列对象 db_chat
 * 
 * @author ruoyi
 * @date 2025-03-22
 */
public class DbChat extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 农户id */
    @Excel(name = "农户id")
    private Long nhId;

    /** 农户名 */
    @Excel(name = "农户名")
    private String nhName;

    /** 农户头像 */
    @Excel(name = "农户头像")
    private String nhPhoto;

    /** 聊天对象id */
    @Excel(name = "聊天对象id")
    private Long otherId;

    /** 聊天对象名 */
    @Excel(name = "聊天对象名")
    private String otherName;

    /** 聊天对象头像 */
    @Excel(name = "聊天对象头像")
    private String otherPhoto;

    /** 备用字段 */
    @Excel(name = "备用字段")
    private String backup;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setNhId(Long nhId) 
    {
        this.nhId = nhId;
    }

    public Long getNhId() 
    {
        return nhId;
    }

    public void setNhName(String nhName) 
    {
        this.nhName = nhName;
    }

    public String getNhName() 
    {
        return nhName;
    }

    public void setNhPhoto(String nhPhoto) 
    {
        this.nhPhoto = nhPhoto;
    }

    public String getNhPhoto() 
    {
        return nhPhoto;
    }

    public void setOtherId(Long otherId) 
    {
        this.otherId = otherId;
    }

    public Long getOtherId() 
    {
        return otherId;
    }

    public void setOtherName(String otherName) 
    {
        this.otherName = otherName;
    }

    public String getOtherName() 
    {
        return otherName;
    }

    public void setOtherPhoto(String otherPhoto) 
    {
        this.otherPhoto = otherPhoto;
    }

    public String getOtherPhoto() 
    {
        return otherPhoto;
    }

    public void setBackup(String backup) 
    {
        this.backup = backup;
    }

    public String getBackup() 
    {
        return backup;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nhId", getNhId())
            .append("nhName", getNhName())
            .append("nhPhoto", getNhPhoto())
            .append("otherId", getOtherId())
            .append("otherName", getOtherName())
            .append("otherPhoto", getOtherPhoto())
            .append("backup", getBackup())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
